<template>
  <PageWrapper>
    <div class="bg">
      <div class="scroll-box">
        <ScrollContainer ref="scrollRef">
          <p>测试测试测试测试测试测试测试测试测试测试测试测试测试</p>
          <p>测试</p>
          <p>测试</p>
          <p>测试</p>
          <p>测试</p>
          <p>测试</p>
          <p>测试</p>
          <p>测试</p>
          <p>测试</p>
          <p>测试</p>
        </ScrollContainer>
      </div>
    </div>
  </PageWrapper>
</template>

<script lang="ts" setup name="assemblyScroll">
import { reactive, ref, unref } from 'vue'
import PageWrapper from '@/components/PageWrapper/index.vue'
import ScrollContainer from '@/components/ScrollContainer/index.vue'
</script>

<style lang="less" scoped>
.bg {
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  .scroll-box {
    width: 200px;
    height: 400px;
    border: 1px solid #eee;
    border-radius: 4px;
    p {
      margin-bottom: 40px;
      white-space: nowrap;
      &:last-child {
        margin-bottom: 0;
      }
    }
  }
}
</style>
